<include file="Public/header"/>

<div class="x-nav">
      <span class="layui-breadcrumb">

      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">

      <xblock>
        <button class="layui-btn" onclick="x_admin_show('添加管理员','{:U('index_add')}')"><i class="layui-icon"></i>添加管理员</button>

        <span class="x-right" style="line-height:40px">共有数据：{$count} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>

            <th>ID</th>
            <th>账号</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
                <if condition="$snid eq 1">
                    <foreach name="rs" item="v">
                    <tr>
                        <td>{$v.id}</td>
                        <td >{$v.username}</td>
                        <td class="td-manage">
				              <a title="编辑" class="layui-btn layui-btn-xs"  onclick="x_admin_show('编辑','{:U('index_modi',array('nid'=>$v['id']))}')" href="javascript:;">
				                编辑
				              </a>
				              <a title="删除"  class="layui-btn layui-btn-warm layui-btn-xs" onclick="single_del(this,'{$v['id']}','{:U('del')}')" href="javascript:;">
				                删除
				              </a>
                        </td>
                    </tr>
                    </foreach>
                <else/>
                    <foreach name="rs" item="v">
                    <if condition="($v.id gt 1)">
                    <tr>
                        <td>{$v.id}</td>
                        <td >{$v.username}</td>
                        <td class="td-manage">
				              <a title="编辑" class="layui-btn layui-btn-xs"  onclick="x_admin_show('编辑','{:U('index_modi',array('nid'=>$v['id']))}')" href="javascript:;">
				                编辑
				              </a>
				              <a title="删除"  class="layui-btn layui-btn-warm layui-btn-xs" onclick="single_del(this,'{$v['id']}','{:U('del')}')" href="javascript:;">
				                删除
				              </a>
                        </td>
                    </tr>
                    </if>
                    </foreach>
                </if>


        </tbody>
      </table>
      <div class="page" id="page">
        {$page}
      </div>

    </div>
    <script>



    </script>

<include file="Public/footer"/>

